package test.day12.test27;

class A {
    public int f(int x, int y) {
        return x + y;
    }
}

class B extends A {
    public int f(double x, int y) {
        return (int) x * y;
    }
}

public class E {
    public static void main(String args[]) {
        B b = new B();
        int m = b.f(3, 5);
        int n = b.f(3.14, 5);
        System.out.printf("%d:%d", m, n);  //【代码】
    }
}
